<?php

class ProsesDao{
	
	public function getProses($id){
		$db=Database::getInstance();
        $con=$db->getConnection(1);

        $query="SELECT * FROM ref_proses WHERE id='$id'";

        $result=$con->prepare($query);
        $result->execute();

        if($result->rowCount()==1){
            $data=$result->fetch();
            return $data;
        }

        return false;
	}
}

class Proses{
	
	var $id;
	var $nama;

}


?>